package com.subang.function.service.impl;

import com.subang.function.domain.ShenlunAnswerLike;
import com.subang.function.mapper.ShenlunAnswerLikeMapper;
import com.subang.function.service.IShenlunAnswerLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 申论答案点赞Service业务层处理
 * 
 * @author subei
 * @date 2025-03-05
 */
@Service
public class ShenlunAnswerLikeServiceImpl implements IShenlunAnswerLikeService 
{
    @Autowired
    private ShenlunAnswerLikeMapper shenlunAnswerLikeMapper;

    /**
     * 查询申论答案点赞
     * 
     * @param id 申论答案点赞主键
     * @return 申论答案点赞
     */
    @Override
    public ShenlunAnswerLike selectShenlunAnswerLikeById(String id)
    {
        return shenlunAnswerLikeMapper.selectShenlunAnswerLikeById(id);
    }

    /**
     * 查询申论答案点赞列表
     * 
     * @param shenlunAnswerLike 申论答案点赞
     * @return 申论答案点赞
     */
    @Override
    public List<ShenlunAnswerLike> selectShenlunAnswerLikeList(ShenlunAnswerLike shenlunAnswerLike)
    {
        return shenlunAnswerLikeMapper.selectShenlunAnswerLikeList(shenlunAnswerLike);
    }

    /**
     * 新增申论答案点赞
     * 
     * @param shenlunAnswerLike 申论答案点赞
     * @return 结果
     */
    @Override
    public int insertShenlunAnswerLike(ShenlunAnswerLike shenlunAnswerLike)
    {
        return shenlunAnswerLikeMapper.insertShenlunAnswerLike(shenlunAnswerLike);
    }

    /**
     * 修改申论答案点赞
     * 
     * @param shenlunAnswerLike 申论答案点赞
     * @return 结果
     */
    @Override
    public int updateShenlunAnswerLike(ShenlunAnswerLike shenlunAnswerLike)
    {
        return shenlunAnswerLikeMapper.updateShenlunAnswerLike(shenlunAnswerLike);
    }

    /**
     * 批量删除申论答案点赞
     * 
     * @param ids 需要删除的申论答案点赞主键
     * @return 结果
     */
    @Override
    public int deleteShenlunAnswerLikeByIds(String[] ids)
    {
        return shenlunAnswerLikeMapper.deleteShenlunAnswerLikeByIds(ids);
    }

    /**
     * 删除申论答案点赞信息
     * 
     * @param id 申论答案点赞主键
     * @return 结果
     */
    @Override
    public int deleteShenlunAnswerLikeById(String id)
    {
        return shenlunAnswerLikeMapper.deleteShenlunAnswerLikeById(id);
    }

}
